TenWebOptimizer\OptimizerUtils D

Total Complexity 574
Dependencies 25
Dependents 29
Total lines 2,583
Lines of code 1,932
Logical lines of code 1,087
Comment lines 332
Methods 100
Properties 1

Methods 100

Method Rating Maintainability Complexity Lines of code
clear_third_party_cache()
C
35 30 73
serve_different_sizes_for_critical_bg_image()
C
38 26 62
replace_bg()
B
39 23 53
regenerate_critical()
B
36 17 82
init_defines()
B
43 16 52
two_update_subscription()
A
41 15 48
substr_replace()
A
48 15 33
init_flow_score_check()
A
39 12 60
request_webp_action()
A
40 11 63
delete_all_cache_file()
A
50 13 26
is_pagespeed_image_optimization_enables()
A
56 13 16
set_global_mode()
A
49 12 29
get_post_id()
A
45 11 39
assemble_parsed_url()
A
56 12 15
cache_compare()
A
49 11 29
injectCriticalBg()
A
50 11 25
check_page_has_no_redirects()
A
48 9 35
cache_files_parsing_array()
A
48 9 32
get_current_post_info()
A
50 9 28
get_tenweb_connection_link()
A
45 8 39
clear_cloudflare_cache()
A
49 8 27
add_wpml_home_pages_into_critical_pages()
A
51 8 27
update_post()
A
52 8 24
get_modes()
A
52 8 23
clear_iframe_src()
A
43 6 52
two_critical_status()
A
54 8 20
wp_maybe_generate_attachment_metadata()
A
55 8 17
inject_in_html()
A
49 7 31
get_default_critical_pages()
S
46 6 40
replace_font()
S
52 7 24
download_critical()
S
47 6 34
delete_critical_page()
S
51 6 24
generate_wpml_home_pages_critical_css()
S
53 6 23
get_critical_default_sizes()
S
58 6 16
set_critical()
S
55 6 16
check_plugin_update()
S
62 6 11
get_wpml_home_urls()
S
52 5 25
triggerPostOptimizationTasks()
S
49 4 32
tweak_cdn_url_if_needed()
S
57 5 16
map_deep()
S
58 5 15
is_tenweb_booster_connected()
S
66 6 7
get_page_url()
S
59 5 14
delete_define()
S
60 5 12
get_url_query()
S
62 5 11
is_rest()
S
61 5 11
delete_so_page()
S
54 4 21
update_site_state()
S
48 3 34
get_permalink_name_by_id()
S
55 4 19
testWebPDelivery()
S
56 4 18
check_score()
S
56 4 18
get_absolute_url()
S
57 4 17
maybe_replace_cdn_path()
S
64 5 9
siteurl_not_root()
S
62 4 11
update_connection_flow_progress()
S
52 3 25
filter_incompatible_plugins()
S
58 3 16
is_paid_user()
S
73 4 4
is_plugin_active()
S
63 4 10
replace_google_font_url()
S
58 3 15
getCriticalPages()
S
62 3 12
get_meta_values()
S
61 3 12
get_wpml_post_flag_url()
S
61 3 12
remove_domain_part()
S
63 3 11
get_worker_script()
S
53 2 23
strrpos()
S
67 3 7
remove_url_protocol()
S
63 3 10
strlen()
S
67 3 7
mbstring_available()
S
64 3 10
isJson()
S
77 3 3
delete_cache_file()
S
64 3 10
is_pagespeed_lazyload_enabled()
S
76 3 3
is_pagespeed_js_defer_enabled()
S
76 3 3
strpos()
S
67 3 7
flushCloudflareCache()
S
64 3 10
split_css_to_arr()
S
64 3 9
findArr()
S
68 3 7
add_log_for_score_check_flow()
S
61 2 12
get_conflicting_plugins()
S
62 2 11
warmup_cache()
S
68 2 6
is_pagespeed_enabled()
S
78 2 3
purge_pagespeed_cache()
S
67 2 7
get_javascipt_type()
S
74 2 4
is_protocol_relative()
S
68 2 7
update_critical_statuses()
S
67 2 7
stripslashes_deep()
S
72 2 5
path_canonicalize()
S
60 1 15
get_ao_wp_site_url_parts()
S
69 2 7
check_if_hosted_website()
S
71 2 6
two_redirect()
S
69 2 7
send_data_to_performance()
S
60 1 14
removeBgImageMarkers()
S
65 1 11
has_changed_bg_image()
S
80 1 3
str_is_valid_regex()
S
70 1 6
two_flatten()
S
72 1 5
delete_files_by_prefix()
S
72 1 5
getImageIdByUrl()
S
66 1 7
preg_grep_keys()
S
77 1 3
delete_all_cache_db()
S
65 1 8
IOConnected()
S
79 1 3
TWOConnected()
S
80 1 3
is_wpml_active()
S
80 1 3